std::basic_string::front

From Cppreference

Jump to: navigation, search
​CharT& front();
(C++0x)
const CharT& front() const;
(C++0x)

Returns reference to the first character in the string.

Contents

Parameters

(none)

Return value

reference to the first character.

Complexity

constant

See also

back (C++0x)
accesses the last character
(public member function)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages